package cn.lystudio.rohm_time_op.service;

import cn.lystudio.rohm_time_op.entity.dto.Record4PageDTO;
import cn.lystudio.rohm_time_op.entity.dto.RecordDTO;
import cn.lystudio.rohm_time_op.entity.po.RecordPO;

import java.util.List;

public interface RecordService {
    List<RecordDTO> getAll(String userCode,
                           String machineNo,
                           List<String> recordTypeList,
                           String searchStartTime,
                           String searchEndTime,
                           String LotNo,
                           String AQRNo,
                           String otherKeywords);
    Record4PageDTO getAll2(String userCode,
                           String machineNo,
                           List<String> recordTypeList,
                           String searchStartTime,
                           String searchEndTime,
                           String LotNo,
                           String AQRNo,
                           String otherKeywords,Integer page,Integer limit);

    int delRecord(Integer recordID);
    List<RecordDTO> getDailyData4Console(String machineNo,
                                         String dailyStart,
                                         String dailyEnd);
    int AppInsertRecord(RecordPO recordPO);
    List<RecordPO> getUnfinishedRecord(String machineNo);
    int uptUnfinishedRecord(RecordPO recordPO);
    RecordPO getRecordByRecordID(int recordID);
    int uptRecordByRecordID(RecordPO recordPO);

}
